﻿@model Orion.Models.EmailMessage

@{
    ViewBag.Title = "SendMassEmail";
    Layout = "~/Views/Shared/_WorkLayout.cshtml";
}

<h2>Senda fjölpóst</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Póstur</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.From, "Frá")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.From)
            @Html.ValidationMessageFor(model => model.From)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Subject, "Titill")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Subject)
            @Html.ValidationMessageFor(model => model.Subject)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Body, "Skilaboð")
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Body)
            @Html.ValidationMessageFor(model => model.Body)
        </div>

        <p>
            <input type="submit" value="Senda" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Til baka", "Index")
</div>
